home *** CD-ROM | disk | FTP | other *** search
/ The Hacker Chronicles - A…the Computer Underground / The Hacker Chronicles - A Tour of the Computer Underground (P-80 Systems).iso / network / ftpintro < prev    next >
Text File  |  1992-11-03  |  8KB  |  180 lines

  1. Unauthorised Access UK  0636-708063  10pm-7am  12oo/24oo
  2.  
  3.           Anonymous FTP: questions, answers, etc.
  4.  
  5.                     odin@pilot.njin.net
  6.  
  7.                       January 5, 1990
  8.  
  9.  
  10.  
  11.      This is a  document  I  pieced  together  from  various
  12. sources.   It  is  not  a  definitive guide to ftp, but just
  13. something to give a novice a general idea of what it is  and
  14. how to do it.
  15.                         What is FTP?
  16.  
  17.      FTP  (File  Transfer  Protocol)  allows  a  person   to
  18. transfer  files  between  two computers, generally connected
  19. via the Internet.  If your system has FTP and  is  connected
  20. to  the  Internet,  you  can  access  very  large amounts of
  21. archives available on a number of systems.  If  you  are  on
  22. Bitnet or a UUCP host, you should look for servers that work
  23. through the mail.  A good source of information on  archives
  24. in general, is the Usenet newsgroup comp.archives.
  25.  
  26.                    What is Anonymous FTP?
  27.  
  28.      Many systems  throughout  the   Internet  offer   files
  29. through  anonymous   FTP.  These include software, documents
  30. of  various  sorts,  and  files  for  configuring  networks.
  31. Archives  for  electronic  mailing   lists  are often stored
  32. available through anonymous  FTP.  Note  that all   this  is
  33. subject to  change.
  34.  
  35.                           Commands
  36.  
  37.      All the normal FTP commands may  be  used  to  retrieve
  38. files.   Some FTP commands are the same on different comput-
  39. ers, but others are not.   Usually,  FTP will list the  com-
  40. mands  if you type "help"  type a question mark (?).   Also,
  41. your computer's help command may have information about FTP.
  42. Try man ftp or man ftpd.
  43.  
  44. Some useful commands available on most systems include:
  45.  
  46.      get     copy a file from the remote computer to yours
  47.      ls/dir  list the files in the current directory
  48.      cd      Change directory
  49.      binary  Switch to binary mode.  For transferring binary files
  50.      ascii   Switch to ascii mode. Ascii mode is the default mode
  51.  
  52.                          Procedure
  53.  
  54.      Anonymous ftp is a facility offered by many machines on
  55. the Internet.  This permits you to log in with the user name
  56. 'anonymous' or the user name  'ftp'.  When  prompted  for  a
  57. password,  type  your  e-mail address -- it's not necessary,
  58. but it's a courtesy for those sites that like to know who is
  59. making use of their facility. Be courteous.
  60.  
  61.      You can then look  around  and  retrieve  files.  (Most
  62. anonymous ftp sites do not permit people to store files)
  63.  
  64.      Typically,  a  directory  called  'pub'  is  where  the
  65. interesting  things  are stored. Some sites will have a file
  66. with a name like ls-lR, that contains a complete list of the
  67. files  on  that site. Otherwise, you can type ls -lR and get
  68. such a listing -- for some sites, this can take a LONG time.
  69.  
  70.      Usually, files are grouped in archive  files,  so  you
  71. don't have to get many small files separately. The most com-
  72. mon archival file format for the Internet is tar.  Occasion-
  73. ally, people use shell archives (shar) instead. tar archives
  74. can be unpacked by running the tar command -- you  may  want
  75. to  first  do  a 'tar t' on the file to see what it contains
  76. before  unpacking  it.  Be  careful  when  unpacking   shell
  77. archives  since they have to be run through the Bourne shell
  78. to unpack them. (The simplest way is to use the unshar  com-
  79. mand)
  80.  
  81.      Files are often stored compressed -- for Unix, the most
  82. common  scheme  is  the  compress program, indicated by a .Z
  83. suffix on the file name.   Sometimes,  people  use  programs
  84. like arc or zoo, which are combined archival and compression
  85. formats. (There are probably other archival formats as  well
  86. -  talk to the systems staff if you encounter them and don't
  87. know how to deal with them)
  88.  
  89.      When retrieving non-text files,  you  must  use  binary
  90. mode, otherwise the file gets messed up. To do this, use the
  91. 'binary' command. (It's safe to set this for text files.  If
  92. the  site  at the other end is non-Unix, you may need to use
  93. some other mode -- see the documents for that site  and  for
  94. ftp)
  95.  
  96.      The simplest way to initiate FTP would be to  give  the
  97. command  'ftp  <system-name>',  where  <system-name>  is the
  98. remote system you are connecting to, either  a  name  (wsmr-
  99. simtel20.army.mil, if you have an entry in /etc/hosts or are
  100. accessing a Domain-name  Server)  or  the  InterNet  address
  101. (26.2.0.74,  for Simtel20).  After a short wait, you will be
  102. prompted for your username.  If you do not have  an  account
  103. on  the  remote  system,  some  systems  allow  you  to  use
  104. 'anonymous'.  This gives you a restricted access path.
  105.  
  106.      You would then be prompted for a password.   Some  sys-
  107. tems  will  tell you to send your real identity as the pass-
  108. word.  What you type doesn't matter, but it is suggested  to
  109. give  your  mail  address.  Other systems need a password of
  110. 'guest', or something similar.
  111.  
  112.      After that, you should receive the FTP prompt  (usually
  113. ftp>),  and  now  have  access.   You can get a directory of
  114. files be giving a 'dir' command, or if the remote system  is
  115. Unix-based,  'ls -l' will give the familiar output.  On Sim-
  116. tel20, there is a file available in  the  default  anonymous
  117. ftp  directory  that  explains  what  Simtel20 is, and where
  118. files are located.  The  name  is  'SIMTEL-ARCHIVES.INFO.nn,
  119. where  ".nn" is a file generation number.  You don't need to
  120. specify the file generation number when requesting the file.
  121. In  fact, it's better not to because you will always get the
  122. latest generation that way.
  123.  
  124.      Unix systems  will  all  have  the  familiar  directory
  125. structure,  and moving around is done with the familiar 'cd'
  126. or 'cwd' command.  TOPS-20 systems have a  different  struc-
  127. ture,  but movement is still accomplished with the 'cd' com-
  128. mand.
  129.  
  130.      Different  systems  have  different  organizations  for
  131. their files, and the above example is just the way I have it
  132. set up.  By 'poking' around other systems, you can learn how
  133. their  files  are set up, and zip around much faster.  Note,
  134. however, that FTP will not allow you outside the FTP  'root'
  135. directory,  usually  >ftp on most systems.  So, poking about
  136. the entire system is not permitted.
  137.  
  138.                          File types
  139.  
  140. These are the common Unix file types:
  141.  
  142.   Suffix      FTP Type
  143.    .Z           bin     compress
  144.    .arc         bin     ARChive
  145.    .shar        ascii   SHell ARchive
  146.    .tar         bin     Tape ARchive
  147.    .uu          ascii   uuencode/uudecode
  148.    .zoo         bin     Zoo
  149.  
  150. However, there are more file compression  types  than  those
  151. listed  above.   Below  is  a  some mail I received recently
  152. describing how to get a document describing  a  much  larger
  153. set of file compression methods and the programs used.
  154. ----
  155. From mjones@ux1.cso.uiuc.edu Wed Aug 15 17:42:33 1990
  156. Date: Wed, 15 Aug 90 16:42:51 -0500
  157. From: Mike Jones <mjones@ux1.cso.uiuc.edu>
  158. To: odin@pilot.njin.net
  159. Subject: additional info for ftp.list header?
  160.  
  161. Hello, my name is Mike Jones. I am a student working at the University of
  162. Illinois. I have been compiling a list of file compression and archiving
  163. techniques. My supervisor suggested I ask you if this might be worth
  164. mentioning in the header of the ftp.list. What it shows is the names of
  165. all file compression/archiving methods known to us and the programs to
  166. undo the compression/archive on PC, Mac, Unix, VM/CMS, and Amiga systems.
  167. This could be helpful to people new to ftp that don't know how to unpackage
  168. the file they have just transferred. The list can be seen via anonymous ftp
  169. at: ux1.cso.uiuc.edu
  170.  
  171. cd doc/pcnet
  172. get compression
  173. get compression2
  174.  
  175. Thanks you for your time and consideration.
  176.  
  177. mjones@ux1.cso.uiuc.edu
  178.  
  179. Downloaded From P-80 Systems 304-744-2253
  180.